<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//安装
Route::get('/install', '\app\frontend\controllers\InstallController@index');     // 安装首页
Route::get('/install/index', '\app\frontend\controllers\InstallController@index');     // 安装首页
Route::post('/install/agreement', '\app\frontend\controllers\InstallController@agreement');     // 安装协议
Route::post('/install/check', '\app\frontend\controllers\InstallController@check');     // 运行环境检测
Route::post('/install/file_power', '\app\frontend\controllers\InstallController@filePower');     // 文件权限设置
Route::post('/install/set_info', '\app\frontend\controllers\InstallController@setInformation');     // 账号设置
Route::post('/install/create_data', '\app\frontend\controllers\InstallController@createData');     // 创建数据
Route::post('/install/delete', '\app\frontend\controllers\InstallController@delete');     // 删除控制器
Route::post('/install/random_user', '\app\frontend\controllers\InstallController@getRandomUser');     // 生成随机账号
Route::post('/install/random_psw', '\app\frontend\controllers\InstallController@getRandomPsw');     // 生成随机密码

//首页
Route::get('/', '\app\frontend\modules\site\controllers\IndexController@index');
Route::get('/index', '\app\frontend\modules\site\controllers\IndexController@index');
Route::get('/page', '\app\frontend\modules\site\controllers\PageController@index');
Route::get('/article/list', '\app\frontend\modules\site\controllers\ArticleController@getList');
Route::get('/article/detail', '\app\frontend\modules\site\controllers\ArticleController@detail');
Route::get('/product/list', '\app\frontend\modules\site\controllers\ProductController@getList');
Route::get('/product/detail', '\app\frontend\modules\site\controllers\ProductController@detail');


//Route::get('/test1', '\App\backend\controllers\TestController@test1');

